package com.orphan.supplier.mapper;

import com.orphan.supplier.po.Backgoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zjm
 * @since 2021-07-14
 */
public interface BackgoodsMapper extends BaseMapper<Backgoods> {
    Integer selectGoodsNum(@Param("tGoodsname") String goodsName);

    /**
     * 按商品名修改商品的库存
     * @param goodsName 商品名
     * @param goodsNum 要添加的商品数量
     */
    void addGoodsNum(@Param("tGoodsname") String goodsName,@Param("tGoodsNum") Integer goodsNum);

    void addgoods(Backgoods backgoods);
}
